/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Entity;

import java.io.Serializable;

/**
 *
 * @author JuanFelipe
 */
public class Schema implements Serializable{
    public String name;
    public String utf;
    public int table;

    public Schema(String name, String utf, int ntable) {
        this.name = name;
        this.utf  = utf;
        this.table   = ntable;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUtf() {
        return utf;
    }

    public void setUtf(String utf) {
        this.utf = utf;
    }

    public int getTable() {
        return table;
    }

    public void setTable(int table) {
        this.table = table;
    }

    @Override
    public String toString() {
        return "Schema{" + "name=" + name + ", utf=" + utf + ", table=" + table + '}';
    }
    
    @Override
    public int hashCode() {
            int hash = 1;

        return hash * 31 + name.hashCode();
    }
    
    @Override
    public boolean equals(Object obj) {
        if(obj == null)
                return false;

        if(!(obj instanceof Schema))
                return false;

        Schema compare = (Schema) obj;

        return compare.name.equals(this.name);
    }
    
}
